package programmierung.aufgabe1;

public class DNS {
	public static final String[][] staticPairs = {{"www.ostfalia.de", "24.32.42.23"},
												  {"www.sonia.de", "25.32.42.23"},
												  {"www.tu-braunschweig.de", "26.32.42.23"}};

	
	public Pair<String, String> lookup(String name) {
		for(int i = 0; i < DNS.staticPairs.length; i++) {
				if(name.equals(DNS.staticPairs[i][0])) {
					return new Pair<String, String>(DNS.staticPairs[i][0], DNS.staticPairs[i][1]);
				}
		}
		return new Pair<String, String>(null, null);
	}
}
